import {DefaultTheme} from 'vitepress'

export const defaultThemeConfig: DefaultTheme.Config = {
  logo: '/logo.png',
  returnToTopLabel: '返回顶部',
  search: {
    provider: 'local'
  },
  footer: {
    message: 'RMade by Jvyou Team with ❤️ Jvyou',
    copyright: 'Copyright © 2024-present Jvyou'
  },
  nav: [
    {text: 'Home', link: '/'},
    {text: 'Reference', link: '/jvyou/introduce'}
  ],
  /*sidebar开始*/
  sidebar: {
    "/jvyou": [
      {
        text: 'Introduce',
        items: [
          {text: 'Introduce', link: '/jvyou/introduce'},
          {text: 'Continuous Integration', link: '/jvyou/introduce/continuous-integration'},
        ]
      },
      {
        text: 'Start',
        items: [
          {text: 'Getting Started', link: '/jvyou/start/getting-started'},
          {text: 'Installation', link: '/jvyou/start/install'},
          {text: 'Test', link: '/jvyou/start/test'},
        ]
      },
      {
        text: 'Best practices',
        items: [
          {text: 'Mapper driven SQL', link: '/jvyou/practices/mapper-drives-sql'},
          {text: 'Mapper combined with XML', link: '/jvyou/practices/mapper-combined-with-xml'},
          {text: 'Assembling SQL with XML', link: '/jvyou/practices/assembling-sql-with-xml'},
          {text: 'Result Set Map', link: '/jvyou/practices/result-set-map'},
          {text: 'Custom Data Source', link: '/jvyou/practices/data-source'},
          {text: 'Custom Plugin', link: '/jvyou/practices/custom-plugin'},
          {text: 'Secondary Cache', link: '/jvyou/practices/l2-cache'},
        ]
      },
      {
        text: 'Guide',
        items: [
          {text: 'SqlSession', link: '/jvyou/guide/sql-session'},
          {text: 'SqlSessionFactory', link: '/jvyou/guide/sql-session-factory'},
          {text: 'SqlSessionFactoryBuilder', link: '/zh/jvyou/guide/sql-session-factory-builder'},
          {text: 'MappedStatement', link: '/jvyou/guide/mapped-statement.md'},
        ]
      }
    ]
  },
  /*sidebar结束*/
  socialLinks: [
    {icon: 'github', link: 'https://gitee.com/jvyou/jvyou-mybatis/tree/2.0/'}
  ]
}
